﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using A2DFramework.CommandBusService;

namespace A2DFramework.Infrastructure.Mvc.Extentions
{
    public static class JSONExtentions
    {
        public static JsonResult ToJsonResult(this BaseCommandResult cmdResult)
        {
            var result = new JsonResult();
            result.Data = cmdResult;
            return result;
        }
    }
}
